'''从serpapi中抓取数据，然后存入到数据库中'''
from serpapi import GoogleSearch

from Config import Configs


class ScrapDataFromGoogle:
    # 分析serp的结果提取自然搜索里面的关联字段,传参data为字典

    @staticmethod
    def start_scrap(search_term):
        search = GoogleSearch(search_term)
        result = search.get_dict()
        print('谷歌抓取的结果：',result)
        return result

# Press the green button in the gutter to run the script.
if __name__ == '__main__':
    print('程序开始运行')


